package com.chzc.fm.duotin.bean.channel;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/27.
 */
public class Rank implements Serializable {



    /**
     * id : 7774
     * title : 新鲜事
     * subhead :
     * href : duotin://forward/rank/cateAlbums/3
     * type : 23
     * subValues : ["滴滴之声","听说电台","警广之声"]
     * image_url : http://c3.duotin.com/i1/DT/WEI9x39Co6Uionqbxn7iFmIyXYYwFxa2eilNdu3U7Ds.jpg
     * item_value : 3
     * sub_title : 新鲜事
     * is_advertisement : 0
     */

    private String id;
    private String title;
    private String subhead;
    private String href;
    private int type;
    private String image_url;
    private String item_value;
    private String sub_title;
    private int is_advertisement;
    private List<String> subValues;
    private int play_num;


    private int content_num;
    private String subscribe_num;
    private int is_subscribe;

    private String comment_num;



    public static Rank objectFromData(String str) {

        return new Gson().fromJson(str, Rank.class);
    }

    public static List<Rank> arrayRankFromData(String str) {

        Type listType = new TypeToken<ArrayList<Rank>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String  getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubhead() {
        return subhead;
    }

    public void setSubhead(String subhead) {
        this.subhead = subhead;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getItem_value() {
        return item_value;
    }

    public void setItem_value(String item_value) {
        this.item_value = item_value;
    }

    public String getSub_title() {
        return sub_title;
    }

    public void setSub_title(String sub_title) {
        this.sub_title = sub_title;
    }

    public int getIs_advertisement() {
        return is_advertisement;
    }

    public void setIs_advertisement(int is_advertisement) {
        this.is_advertisement = is_advertisement;
    }

    public List<String> getSubValues() {
        return subValues;
    }

    public void setSubValues(List<String> subValues) {
        this.subValues = subValues;
    }

    public int getPlay_num() {
        return play_num;
    }

    public void setPlay_num(int play_num) {
        this.play_num = play_num;
    }

    public int getContent_num() {
        return content_num;
    }

    public void setContent_num(int content_num) {
        this.content_num = content_num;
    }

    public String getSubscribe_num() {
        return subscribe_num;
    }

    public void setSubscribe_num(String subscribe_num) {
        this.subscribe_num = subscribe_num;
    }

    public int getIs_subscribe() {
        return is_subscribe;
    }

    public void setIs_subscribe(int is_subscribe) {
        this.is_subscribe = is_subscribe;
    }

    public String  getComment_num() {
        return comment_num;
    }

    public void setComment_num(String comment_num) {
        this.comment_num = comment_num;
    }
}
